package com.CISS.controller;


import com.CISS.entity.Cisuser;
import com.CISS.entity.Company;
import com.CISS.service.CisuserService;
import com.CISS.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

@RestController
@RequestMapping(value = "/Company")
public class CompanyController {
    @Autowired
    private CompanyService service;

    @RequestMapping(value = "/getlist")
    public List<String> getAllCompanies(){
        return service.getAllCompanies();
    }
}
